import { USER_GET } from '../constants'

export default function user(state = {}, action) {
  switch (action.type) {
    case USER_GET:
      return action.payload
    default:
      return state
  }
}
